﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModelLibrary
{
    public class ControlInfo
    {
        /// <summary>
        /// 功能编号
        /// </summary>
        public string FuncNo { get; set; } = "";
        /// <summary>
        /// 控件ID
        /// </summary>
        public string CtrID { get; set; } = "";
        /// <summary>
        /// 控件名称
        /// </summary>
        public string CtrName { get; set; } = "";
        /// <summary>
        /// 控件别名
        /// </summary>
        public string CtrAlias { get; set; } = "";
        /// <summary>
        /// 控件类型(button,combobox,textbox,label)
        /// </summary>
        public string CtrType { get; set; } = CtrTypeStyle.None.ToString();
        /// <summary>
        /// 是否只读（0，1）
        /// </summary>
        public string ReadOnly { get; set; } = "";
        /// <summary>
        /// 是否启用（0，1）
        /// </summary>
        public string Enable { get; set; } = "";
        /// <summary>
        /// 横坐标X
        /// </summary>
        public int PointX { get; set; } = 0;
        /// <summary>
        /// 纵坐标Y
        /// </summary>
        public int PointY { get; set; } = 0;
        /// <summary>
        /// 宽度
        /// </summary>
        public int Width { get; set; } = 0;
        /// <summary>
        /// 高度
        /// </summary>
        public int Hight { get; set; } = 0;
        /// <summary>
        /// 显示文字
        /// </summary>
        public string Text { get; set; } = "";
        /// <summary>
        /// 事件组
        /// </summary>
        public List<Events> Event { get; set; } = new List<Events>();
        /// <summary>
        /// 时间戳
        /// </summary>
        public string TimeStack { get; set; } = "";
        /// <summary>
        /// 填充类型
        /// </summary>
        public string Dock { get; set; } = MyDockStyle.None.ToString();
    }
    public enum CtrTypeStyle
    {
        None,
        Label,
        Button,
        TextBox,
        ComboBox,
        CheckBox,
    };
    public enum MyDockStyle
    {
        None,
        Fill,
        Top,
        Bottom,
        Left,
        Right,
    };
}
